﻿@model BankData
 
<script type="text/javascript">
 
     $(document).ready(function () {
        //alert($("#id").val());
         $.post('@Url.Content("~/CheckRecord/CustomerDetails")', { id: "@ViewBag.Id" },
               function (data) {
                   $('#table').datagrid({
                       iconCls: 'icon-save',
                       width: 750,
                       height: 200,
                       sortName: 'Amout',
                       sortOrder: 'desc',
                       remoteSort: false,
                       idField: 'Lid',
                       singleSelect: true,
                       columns: [[
                         { field: 'CustomerName', title: 'CustomerName', width: 400 },
                         { field: 'Amout', title: 'Amout', width: 200 },
                         { field: 'Active', title: 'Agree', width: 140 }
                         ]],
                       toolbar: [
                             {
                                 text: '通过申请',
                                 iconCls: 'icon-edit',
                                 handler: approve
                             },
                             {
                                 text: '拒绝申请',
                                 iconCls: 'icon-cancel',
                                 handler: reject
                             }
                     ]
                   }).datagrid('loadData', data)
               })
     });
</script>
